﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="RentalOrder.aspx.cs" Inherits="RentalOrder" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" style="margin-bottom: 0px" 
        AllowPaging="True" onrowcommand="GridView1_RowCommand1">
    <Columns>
            <asp:ButtonField ButtonType="Button" CommandName="delete" Text="Delete" />
            <asp:BoundField DataField="MovieID" HeaderText="MovieID" SortExpression="MovieID" />
            <asp:HyperLinkField DataNavigateUrlFields="MovieID" 
                DataNavigateUrlFormatString="~/Movie.aspx?MovieId={0}" DataTextField="Title" 
                HeaderText="Title" SortExpression="Title" />
            <asp:BoundField DataField="Description" HeaderText="Description" 
                SortExpression="Description" />
            <asp:BoundField DataField="Length" HeaderText="Length" 
                SortExpression="Length" />
            <asp:BoundField DataField="Director" HeaderText="Director" 
                SortExpression="Director" />
            <asp:BoundField DataField="Priority" HeaderText="Priority" SortExpression="Priority" />
            <asp:ButtonField ButtonType="Button" CommandName="IncreasePriority" Text="+" />
            <asp:ButtonField ButtonType="Button" CommandName="DecreasePriority" Text="-" />
    </Columns>
    </asp:GridView>
    </asp:Content>

